Auto merge of #2165 - psyomn:fix-2125-dup-bins, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 8 Dec 2015 18:00:31 +0000 (18:00 +0000)
committerbors <bors@rust-lang.org>
Tue, 8 Dec 2015 18:00:31 +0000 (18:00 +0000)
commit1af03beaffe9be40ae81ca39431c1f1651ef6b02
tree6294867962a322a9bfc2c3979410236358279848
parentfcff23071fdc5b3a9083b76b2c0d8289e052e38c
parent08e75334563fb26da03bbae1faf538d095b36425
Auto merge of #2165 - psyomn:fix-2125-dup-bins, r=alexcrichton

Alex, thank you for directing me to the right way.

I did some changes, and made it bail with the following message if duplicate binaries are detected:

````nocode
failed to parse manifest at `/home/psyomn/programming/rust/fork/badproj/Cargo.toml`

Caused by:
  rejected binary name e: only unique binary names are accepted
````

I also added a test to check for this! Let me know if anything needs fixing.

ref #2125